package cn.zjh.base.query;

import lombok.Data;

@Data
public class BaseQuery {

    private Integer currentPage =1;

    private Integer PageSize = 5;

    private String keyword;

    public Integer getStart(){
        return (this.currentPage-1) * this.PageSize;
    }

    @Override
    public String toString() {
        return "BaseQuery{" +
                "currentPage=" + currentPage +
                ", PageSize=" + PageSize +
                ", keyword='" + keyword + '\'' +
                '}';
    }
}
